class G{
    _name:string='';
    protected age:number=18;
    constructor(name:string){
        this._name=name
    }
}
class GG extends G{
    _name:string=""
    _work:string=""
    constructor(_n:string,_w:string){
        super(_n);
        this._name = _n;
        this._work = _w;
    }
    say(){
       console.log(this._name,this._work,this.age)
    }
}
let g1= new GG("tgrong","code","tgrong2")
g1.say();